package com.dapeng.cleardatabackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dapeng.cleardatabackend.model.entity.Graph;
import com.dapeng.cleardatabackend.model.enums.IsEnum;
import com.dapeng.cleardatabackend.model.vo.GraphVO;

/**
* @author dapeng
* @description 针对表【graph(图谱表)】的数据库操作Mapper
* @createDate 2024-12-22 13:29:10
* @Entity generator.domain.Graph
*/
public interface GraphMapper extends BaseMapper<Graph> {
    /**
     * 按id硬删除
     *
     * @param id id
     */
    void hardRemoveById(Long id);

    /**
     * 选择公共图形页面
     *
     * @param graphVOPage 分页
     * @param name       名称
     * @param isPublish  是否发布
     * @return {@link Page }<{@link GraphVO }>
     */
    Page<GraphVO> selectPublicGraphPage(Page<GraphVO> graphVOPage, String name, IsEnum isPublish);
}




